home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / interapplication comm / 7edit / source / sveditfile.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.0 KB  |  70 lines

  1. /*
  2.     File:        SVEditFile.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by: Original version by Jon Lansdell and Nigel Humphreys.
  7.                             3.1 updates by Greg Sutton.    
  8.  
  9.     Copyright:    Copyright ©1995-1999 by Apple Computer, Inc., All Rights Reserved.
  10.  
  11.                 You may incorporate this Apple sample source code into your program(s) without
  12.                 restriction. This Apple sample source code has been provided "AS IS" and the
  13.                 responsibility for its operation is yours. You are not permitted to redistribute
  14.                 this Apple sample source code as "Apple sample source code" after having made
  15.                 changes. If you're going to re-distribute the source, we require that you make
  16.                 it clear in the source that the code was descended from Apple sample source
  17.                 code, but that you've made changes.
  18.  
  19.     Change History (most recent first):
  20.                 7/19/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  21.                 
  22.  
  23. */
  24.  
  25. #ifndef __SVEDITFILE__
  26. #define __SVEDITFILE__
  27.  
  28. #include <Memory.h>
  29. #include <Quickdraw.h>
  30. #include <Traps.h>
  31. #include <Files.h>
  32. #include <Packages.h>
  33. #include <Editions.h>
  34. #include <AppleEvents.h>
  35. #include <Printing.h>
  36.  
  37. #include "SVEditGlobals.h"
  38. #include "SVEditUtils.h"
  39. #include "SVEditWindow.h"
  40.                  
  41. pascal void DoQuit(DescType saveOpt);
  42.  
  43. pascal OSErr DoClose(WindowPtr aWindow,Boolean canInteract,DescType dialogAnswer);
  44.  
  45. short DoFileDialog ( short theDlogID, WindowRef theWindow );
  46.  
  47. pascal OSErr GetFileNameToSaveAs(DPtr theDocument);
  48.  
  49. pascal OSErr DoSave(DPtr theDocument, FSSpec theFSSpec);
  50.  
  51. pascal OSErr GetFileContents(FSSpec theFSSpec, DPtr theDocument);
  52.  
  53. pascal void FileError(Str255 s, Str255 f);
  54.  
  55. pascal OSErr DoCreate(FSSpec theSpec);
  56.  
  57. pascal OSErr WriteFile(DPtr theDocument, short refNum, FSSpec theFSSpec);
  58. pascal OSErr ReadFile(DPtr theDocument, short  refNum, Str255 fn);
  59.  
  60. pascal OSErr SaveUsingTemp(DPtr theDocument);
  61.  
  62. pascal OSErr OpenOld(FSSpec aFSSpec);
  63.  
  64. pascal OSErr OpenUsingAlias(AliasHandle theAliasH);
  65.  
  66. pascal OSErr GetFile(FSSpec *theFSSpec);
  67.  
  68. short DoSaveBeforeClosing ( short theDlogID, WindowRef theWindow );
  69.  
  70. #endif